﻿<controls:ChildWindow x:Class="CrudCategories.EditCategory"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="411" Height="140" 
           Title="EditCategory" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot" Margin="2" Loaded="LayoutRoot_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="21,16,0,0" Name="labelCategoryName" VerticalAlignment="Top" Width="90" Content="Category name:" />
        <sdk:Label Height="28" HorizontalAlignment="Left" Margin="43,45,0,0" Name="labelCategoryDescription" VerticalAlignment="Top" Width="68" Content="Description:" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="117,12,0,0" Name="textBoxCategoryName" 
                 VerticalAlignment="Top" Width="249" Text="{Binding Path=CategoryName, Mode=TwoWay}"/>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="117,41,0,0" Name="textBoxCategoryDescription" 
                 VerticalAlignment="Top" Width="249" Text="{Binding Path=Description, Mode=TwoWay}" />
    </Grid>
</controls:ChildWindow>